package _租车系统;

public class TheCar extends Car {
    public TheCar() {
    }

    public TheCar(String chepai, String pinpai, int zujin, int zuowei, int day, double feiyong, boolean state) {
        super(chepai,  pinpai, zujin, zuowei, day, feiyong, state);
    }

    @Override
    public double feiyong() {

        if (day>360){
            return day*zujin*0.7;
        }else if (day>180){
            return day * zujin * 0.85;
        }
        return super.feiyong();
    }
}
